package com.lyq.bean;

public class CourseSchedule {
    private String courseNo;
    private String courseName;
    private String teacher;
    private String place;
    private String time;
    private int dayOfWeek; // 星期几 (1-7 表示周一到周日)
    private int startSession; // 开始节次
    private int endSession; // 结束节次
    
    public CourseSchedule() {
    }
    
    public CourseSchedule(String courseNo, String courseName, String teacher, 
                         String place, String time, int dayOfWeek, 
                         int startSession, int endSession) {
        this.courseNo = courseNo;
        this.courseName = courseName;
        this.teacher = teacher;
        this.place = place;
        this.time = time;
        this.dayOfWeek = dayOfWeek;
        this.startSession = startSession;
        this.endSession = endSession;
    }
    
    // Getter和Setter方法
    public String getCourseNo() {
        return courseNo;
    }
    
    public void setCourseNo(String courseNo) {
        this.courseNo = courseNo;
    }
    
    public String getCourseName() {
        return courseName;
    }
    
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
    
    public String getTeacher() {
        return teacher;
    }
    
    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }
    
    public String getPlace() {
        return place;
    }
    
    public void setPlace(String place) {
        this.place = place;
    }
    
    public String getTime() {
        return time;
    }
    
    public void setTime(String time) {
        this.time = time;
    }
    
    public int getDayOfWeek() {
        return dayOfWeek;
    }
    
    public void setDayOfWeek(int dayOfWeek) {
        this.dayOfWeek = dayOfWeek;
    }
    
    public int getStartSession() {
        return startSession;
    }
    
    public void setStartSession(int startSession) {
        this.startSession = startSession;
    }
    
    public int getEndSession() {
        return endSession;
    }
    
    public void setEndSession(int endSession) {
        this.endSession = endSession;
    }
    
    @Override
    public String toString() {
        return "CourseSchedule{" +
                "courseNo='" + courseNo + '\'' +
                ", courseName='" + courseName + '\'' +
                ", teacher='" + teacher + '\'' +
                ", place='" + place + '\'' +
                ", time='" + time + '\'' +
                ", dayOfWeek=" + dayOfWeek +
                ", startSession=" + startSession +
                ", endSession=" + endSession +
                '}';
    }
}